import 'package:flutter_scaffold/base/status_widget.dart';
import 'package:flutter_scaffold/flutter_scaffold.dart';

mixin class StatusPageMixin {
  ///当前页面加载状态
  var status = StatusType.loading.obs;

  void showStatusNormal() {
    status.value = StatusType.normal;
  }

  void showStatusEmpty() {
    status.value = StatusType.empty;
  }

  void showStatusLoading() {
    status.value = StatusType.loading;
  }

  void showStatusError() {
    status.value = StatusType.error;
  }
}
